package edu.umassd.raddacl.init;

import java.util.Collection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import edu.umassd.raddacl.Cluster;
import edu.umassd.raddacl.DataSet;
import edu.umassd.raddacl.RADDACL;
import edu.umassd.raddacl.util.Output;

public class SingleRun
{
	public static void main(String[] args)
	{
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"/raddacl-beans.xml");

		RADDACL raddacl = context.getBean(RADDACL.class);
		DataSet set = context.getBean(DataSet.class);
		Output output = context.getBean(Output.class);

		Collection<Cluster> clusters = raddacl.getClusters(set);

		output.save(clusters);
	}
}
